import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
    { path: "/index", name: "index", component: () => import("@/views/Index.vue"),props: true,
        children: [
            { path: "org/DutyList", name: "DutyList", component: () => import("@/views/org/DutyList.vue"),}, //职位管理
            { path: "org/UserInfo", name: "UserInfo", component: () => import("@/views/org/UserInfo.vue"),}, //个人信息
        ]
    },
    { path: "/base/org/DutyList", name: "DutyList", component: () => import("@/views/org/DutyList.vue"),}, //职位管理
    { path: "/base/org/UserInfo", name: "UserInfo", component: () => import("@/views/org/UserInfo.vue"),}, //个人信息
];
const router = new VueRouter({
    mode: "history",
    routes,
});
export default router;
